var express=require('express');
var router=express.Router();
const News=require("../controllers/news.controller");
router.post('/',News.add);
router.put('/:id',News.update);
router.delete('/:id', News.remove);
router.post("/query",News.query);
router.get('/:id', News.get);
module.exports = router;

